# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xsetroot
pkgver=1.1.3
pkgrel=1
pkgdesc="X.Org xsetroot application"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libx11-dev libxmu-dev libxcursor-dev xbitmaps util-macros"
source="https://www.x.org/releases/individual/app/xsetroot-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make -C "$builddir" check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f333d1bfd92bb943044da36331ae2cf68a811c8f3891719d9ebc1749e2dd0c67068f86face0794c3c4ae584c4dd189bad4998dccb38fe1ac37a8921e5713e7c0  xsetroot-1.1.3.tar.xz
"
